package com.ccom.starter.rabbitmq.event;

import lombok.Data;
import org.springframework.cloud.bus.event.RemoteApplicationEvent;

/**
 * 自定义网关刷新远程事件
 */
@Data
public class CcomRemoteApplicationEvent extends RemoteApplicationEvent {

    private EventObj eventObj;

    private CcomRemoteApplicationEvent() {
    }

    public CcomRemoteApplicationEvent(EventObj source, String originService, String destinationService) {
        super(source, originService, destinationService);
        this.eventObj = source;
    }

    public CcomRemoteApplicationEvent(EventObj source, String originService) {
        super(source, originService, null);
        this.eventObj = source;
    }
}
